#include"UdpServer.hpp"
#include<iostream>

int main(int argc,char* argv[])
{
    // ./udp_server  8080
    if(argc!=2)
    {
        std::cout<<"Usage ./udp_server 8080"<<std::endl;
        return 1;
    }

    uint16_t port= ::atoi(argv[1]);
    UdpServer server(port);

    
    server.InitServer();
    server.Start();

    
    return 0;
}

